<?php

class admin{
	
	public function mostrar_admin(){
	
		include_once("view/v_header_pag_prin.html");

		echo "<h1>AREA DE ADMINISTRACION</h1>";
		include_once("view/v_admin_form.html");

		include_once("view/v_footer_pag_princ.html");
	}
	
	public function crear_usuario(){		
		include_once("../view/v_header_pag_prin.html");
		include_once("../view/_admin_form.html");
		include_once("../view/v_footer_pag_princ.html");
	}

}

$instancia= new admin;
$instancia->mostrar_admin();

if(isset($_GET['crear'])){

	if($_GET['crear']==1){
	
		$instancia->crear_usuario();
	} else {
		$instancia->mostrar_admin();
	}
}

?>